package com.fayuan.nocv.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String username;
    private String password;
    private Integer sex;
    private Integer age;
    private String address;
    private String img;
    private String phone;
    private String card;
    private Integer departmentId;
    private Integer officeId;
    private String salt;

    @TableField(exist = false)
    private String departmentName;
    @TableField(exist = false)
    private String officeName;
    @TableField(exist = false)
    private String sexString;
}
